package com.tbh.security9;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@MapperScan("com.tbh.security9.mapper")
@SpringBootApplication
@EnableGlobalMethodSecurity(
        securedEnabled = true,
        prePostEnabled = true
)
public class Security9Application {
    public static void main(String[] args) {
        SpringApplication.run(Security9Application.class);
    }
}
